<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="http://srvmcturpsoa01:8001/soa-infra/services/SERVICIOS/swObtenerPersona/swObtenerPersona.wsdl"/>
      <rootElement name="OBTENERPERSONAMR" namespace="http://mincetur.gob.pe/SIC/persona/obtenerPersona"/>
    </source>
    <source type="WSDL">
      <schema location="../datosRepresentanteDA.wsdl"/>
      <rootElement name="ViSicrepreadminCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRepresentanteDA"/>
      <param name="detalleRepresentante_OutputVariable.ViSicrepreadminCollection" />
    </source>
    <source type="WSDL">
      <schema location="../ObtenerRequisitosDA.wsdl"/>
      <rootElement name="OutputParameters" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/ObtenerRequisitosDA"/>
      <param name="requisitos_OutputVariable.OutputParameters" />
    </source>
    <source type="WSDL">
      <schema location="../ObtenerDatosEventoDA.wsdl"/>
      <rootElement name="Sic1EvenCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/ObtenerDatosEventoDA"/>
      <param name="detalleEvento_OutputVariable.Sic1EvenCollection" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swAbrirExpediente.wsdl"/>
      <rootElement name="ABRIREXPEDIENTEMR" namespace="http://mincetur.gob.pe/SIC/expediente/abrirExpediente"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [TUE JUN 25 16:44:51 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:ns5="http://mincetur.gob.pe/SIC/expediente/abrirExpediente"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/SOA/swAbrirExpediente/ObtenerDatosEventoDA"
                xmlns:client="http://mincetur.gob.pe/SIC/expediente/swAbrirExpediente"
                xmlns:tns="http://mincetur.gob.pe/SIC/persona/swObtenerPersona"
                xmlns:ns8="http://mincetur.gob.pe/SIC/expediente/obtenerRequisitos"
                xmlns:inp1="http://mincetur.gob.pe/SIC/persona/obtenerPersona"
                xmlns:ns9="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns10="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/ObtenerRequisitosDA"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/db/top/ObtenerDatosEventoDA"
                xmlns:ns7="http://mincetur.gob.pe/SIC/persona/obtenerRepresentantes"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRepresentanteDA"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/SOA/swAbrirExpediente/ObtenerRequisitosDA"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:ns6="http://mincetur.gob.pe/SIC/expediente/obtenerSolicitud"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:ns0="http://mincetur.gob.pe/SIC/persona/personaTipo"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/SOA/swAbrirExpediente/datosRepresentanteDA"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns3 tns inp1 db plt wsdl ns4 top ns2 ns0 xsd ns1 ns5 client ns8 ns9 ns10 ns7 ns6 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="detalleRepresentante_OutputVariable.ViSicrepreadminCollection"/>
  <xsl:param name="requisitos_OutputVariable.OutputParameters"/>
  <xsl:param name="detalleEvento_OutputVariable.Sic1EvenCollection"/>
  <xsl:template match="/">
    <ns5:ABRIREXPEDIENTEMR>
      <ns5:EXPEDIENTE>
        <ns6:SOLICITUD>
          <xsl:attribute name="ID_EVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:idEven"/>
          </xsl:attribute>
          <xsl:attribute name="DES_EVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:desEven"/>
          </xsl:attribute>
          <xsl:attribute name="COD_EXPE">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:codExpe"/>
          </xsl:attribute>
          <xsl:attribute name="FEC_CREACION">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:fecCreacion"/>
          </xsl:attribute>
          <xsl:attribute name="ID_PERS">
            <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_PERS"/>
          </xsl:attribute>
          <xsl:attribute name="ID_STIPOEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicstipoeven/ns4:idStipoeven"/>
          </xsl:attribute>
          <xsl:attribute name="COD_STIPOEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicstipoeven/ns4:codStipoeven"/>
          </xsl:attribute>
          <xsl:attribute name="DES_STIPOEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicstipoeven/ns4:desStipoeven"/>
          </xsl:attribute>
          <xsl:attribute name="ID_SCLASEEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:idSclaseeven"/>
          </xsl:attribute>
          <xsl:attribute name="COD_SCLASEEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:codSclaseeven"/>
          </xsl:attribute>
          <xsl:attribute name="DES_SCLASEEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:desSclaseeven"/>
          </xsl:attribute>
          <xsl:attribute name="ID_CLASEEVEN">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:idClaseeven"/>
          </xsl:attribute>
          <xsl:attribute name="FEC_DESDE">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:fecDesde"/>
          </xsl:attribute>
          <xsl:attribute name="FEC_HASTA">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:fecHasta"/>
          </xsl:attribute>
          <xsl:attribute name="DES_NOTAS">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:desNotas"/>
          </xsl:attribute>
          <xsl:attribute name="COD_TIPOSREQUISITO">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:codTiposRequisitos"/>
          </xsl:attribute>
          <xsl:attribute name="FLG_SILEADMI">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:flgSileadmi"/>
          </xsl:attribute>
          <xsl:attribute name="NUM_DIAPLAZO">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:numDiaplazo"/>
          </xsl:attribute>
          <xsl:attribute name="COD_TIPOSOLI">
            <xsl:value-of select="$detalleEvento_OutputVariable.Sic1EvenCollection/ns4:Sic1EvenCollection/ns4:Sic1Even/ns4:viSicsclaseeven/ns4:codTiposoli"/>
          </xsl:attribute>
          <ns6:REPRESENTANTES>
            <xsl:for-each select="$detalleRepresentante_OutputVariable.ViSicrepreadminCollection/top:ViSicrepreadminCollection/top:ViSicrepreadmin">
              <ns7:REPRESENTANTE>
                <xsl:attribute name="ID_ADMIN">
                  <xsl:value-of select="top:idAdmin"/>
                </xsl:attribute>
                <xsl:attribute name="DES_ADMIN">
                  <xsl:value-of select="top:desAdmin"/>
                </xsl:attribute>
                <xsl:attribute name="ID_REPRE">
                  <xsl:value-of select="top:idRepre"/>
                </xsl:attribute>
                <xsl:attribute name="DES_REPRE">
                  <xsl:value-of select="top:desRepre"/>
                </xsl:attribute>
                <xsl:attribute name="ID_TRELAPERS">
                  <xsl:value-of select="top:idTrelapers"/>
                </xsl:attribute>
                <xsl:attribute name="DES_TRELAPERS">
                  <xsl:value-of select="top:desTrelapers"/>
                </xsl:attribute>
                <xsl:attribute name="COD_TRELAPERS">
                  <xsl:value-of select="top:codTrelapers"/>
                </xsl:attribute>
                <xsl:attribute name="MAIL">
                  <xsl:value-of select="top:mail"/>
                </xsl:attribute>
                <xsl:attribute name="TELEFAX">
                  <xsl:value-of select="top:telefax"/>
                </xsl:attribute>
                <xsl:attribute name="TELECELULAR">
                  <xsl:value-of select="top:telecelular"/>
                </xsl:attribute>
                <xsl:attribute name="TELEFIJO">
                  <xsl:value-of select="top:telefijo"/>
                </xsl:attribute>
              </ns7:REPRESENTANTE>
            </xsl:for-each>
          </ns6:REPRESENTANTES>
          <ns6:REQUISITOS>
            <xsl:for-each select="$requisitos_OutputVariable.OutputParameters/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row">
              <ns8:REQUISITO>
                <xsl:if test="db:ID_STIPODOCU">
                  <xsl:attribute name="ID_STIPODOCU">
                    <xsl:value-of select="db:ID_STIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:COD_GRUPO">
                  <xsl:attribute name="COD_GRUPO">
                    <xsl:value-of select="db:COD_GRUPO"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:COD_SCLASEEVENASOC">
                  <xsl:attribute name="COD_SCLASEEVENASOC">
                    <xsl:value-of select="db:COD_SCLASEEVENASOC"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_STIPODOCU">
                  <xsl:attribute name="DES_STIPODOCU">
                    <xsl:value-of select="db:DES_STIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:COD_STIPODOCU">
                  <xsl:attribute name="COD_STIPODOCU">
                    <xsl:value-of select="db:COD_STIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:ID_TIPODOCU">
                  <xsl:attribute name="ID_TIPODOCU">
                    <xsl:value-of select="db:ID_TIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_TIPODOCU">
                  <xsl:attribute name="DES_TIPODOCU">
                    <xsl:value-of select="db:DES_TIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:COD_TIPODOCU">
                  <xsl:attribute name="COD_TIPODOCU">
                    <xsl:value-of select="db:COD_TIPODOCU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:FLG_VIGENCIA">
                  <xsl:attribute name="FLG_VIGENCIA">
                    <xsl:value-of select="db:FLG_VIGENCIA"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:FLG_DATOS">
                  <xsl:attribute name="FLG_DATOS">
                    <xsl:value-of select="db:FLG_DATOS"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_URLFORMDATOS">
                  <xsl:attribute name="DES_URLFORMDATOS">
                    <xsl:value-of select="db:DES_URLFORMDATOS"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:FLG_IMPORTAEXCEL">
                  <xsl:attribute name="FLG_IMPORTAEXCEL">
                    <xsl:value-of select="db:FLG_IMPORTAEXCEL"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:FLG_TIENEDOCBINARIO">
                  <xsl:attribute name="FLG_TIENEDOCBINARIO">
                    <xsl:value-of select="db:FLG_TIENEDOCBINARIO"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_URIEXCEL">
                  <xsl:attribute name="DES_URIEXCEL">
                    <xsl:value-of select="db:DES_URIEXCEL"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:COD_TIPOEXCEL">
                  <xsl:attribute name="COD_TIPOEXCEL">
                    <xsl:value-of select="db:COD_TIPOEXCEL"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:ID_DOC">
                  <xsl:attribute name="ID_DOCU">
                    <xsl:value-of select="db:ID_DOC"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:FLG_ESTAREQU">
                  <xsl:attribute name="FLG_ESTAREQU">
                    <xsl:value-of select="db:FLG_ESTAREQU"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_LOCAURI">
                  <xsl:attribute name="DES_LOCAURI">
                    <xsl:value-of select="db:DES_LOCAURI"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_FECHA">
                  <xsl:attribute name="DES_FECHA">
                    <xsl:value-of select="db:DES_FECHA"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="db:DES_SUMILLA">
                  <xsl:attribute name="DES_SUMILLA">
                    <xsl:value-of select="db:DES_SUMILLA"/>
                  </xsl:attribute>
                </xsl:if>
              </ns8:REQUISITO>
            </xsl:for-each>
          </ns6:REQUISITOS>
          <ns6:ADMINISTRADO>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_PERS">
              <xsl:attribute name="ID_PERS">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_PERS"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_PERS">
              <xsl:attribute name="DES_PERS">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_PERS"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFFIJO">
              <xsl:attribute name="DES_TELFFIJO">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFFIJO"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFCELULAR">
              <xsl:attribute name="DES_TELFCELULAR">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFCELULAR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFFAX">
              <xsl:attribute name="DES_TELFFAX">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_TELFFAX"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_CORREO">
              <xsl:attribute name="DES_CORREO">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_CORREO"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBIGEO">
              <xsl:attribute name="DES_UBIGEO">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBIGEO"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_VIA">
              <xsl:attribute name="ID_VIA">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_VIA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_VIA">
              <xsl:attribute name="DES_VIA">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_VIA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_ZONA">
              <xsl:attribute name="ID_ZONA">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@ID_ZONA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_ZONA">
              <xsl:attribute name="DES_ZONA">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_ZONA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBICAEXT">
              <xsl:attribute name="DES_UBICAEXT">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBICAEXT"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBICAINTE">
              <xsl:attribute name="DES_UBICAINTE">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_UBICAINTE"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_DIRECCION">
              <xsl:attribute name="DES_DIRECCION">
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/@DES_DIRECCION"/>
              </xsl:attribute>
            </xsl:if>
            <ns0:TIPO_PERSONA>
              <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/@ID_TIPOPERS">
                <xsl:attribute name="ID_TIPOPERS">
                  <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/@ID_TIPOPERS"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/@DES_TIPOPERS">
                <xsl:attribute name="DES_TIPOPERS">
                  <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/@DES_TIPOPERS"/>
                </xsl:attribute>
              </xsl:if>
              <ns0:PERSONA_NATURAL>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_PRIMNOMB">
                  <xsl:attribute name="DES_PRIMNOMB">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_PRIMNOMB"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_SEGUNOMB">
                  <xsl:attribute name="DES_SEGUNOMB">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_SEGUNOMB"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_APELPATE">
                  <xsl:attribute name="DES_APELPATE">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_APELPATE"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_APELMATE">
                  <xsl:attribute name="DES_APELMATE">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@DES_APELMATE"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@FEC_NACI">
                  <xsl:attribute name="FEC_NACI">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@FEC_NACI"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@ID_GENERO">
                  <xsl:attribute name="ID_GENERO">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@ID_GENERO"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@ID_ESTACIVIL">
                  <xsl:attribute name="ID_ESTACIVIL">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL/@ID_ESTACIVIL"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_NATURAL"/>
              </ns0:PERSONA_NATURAL>
              <ns0:PERSONA_JURIDICA>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_NOMBCOME">
                  <xsl:attribute name="DES_NOMBCOME">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_NOMBCOME"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_PERSORGA">
                  <xsl:attribute name="DES_PERSORGA">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_PERSORGA"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_GRUPEMPR">
                  <xsl:attribute name="DES_GRUPEMPR">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@DES_GRUPEMPR"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@ID_TIPOEMPR">
                  <xsl:attribute name="ID_TIPOEMPR">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@ID_TIPOEMPR"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:if test="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@ID_TIPOORGA">
                  <xsl:attribute name="ID_TIPOORGA">
                    <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA/@ID_TIPOORGA"/>
                  </xsl:attribute>
                </xsl:if>
                <xsl:value-of select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:TIPO_PERSONA/ns0:PERSONA_JURIDICA"/>
              </ns0:PERSONA_JURIDICA>
            </ns0:TIPO_PERSONA>
            <ns0:DOCUMENTOSIDENTIFICACION>
              <xsl:for-each select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:DOCUMENTOSIDENTIFICACION/ns0:DOCUMENTOIDENTIFICACION">
                <ns0:DOCUMENTOIDENTIFICACION>
                  <xsl:if test="@ID_TIPOIDEN">
                    <xsl:attribute name="ID_TIPOIDEN">
                      <xsl:value-of select="@ID_TIPOIDEN"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@DES_TIPOIDEN">
                    <xsl:attribute name="DES_TIPOIDEN">
                      <xsl:value-of select="@DES_TIPOIDEN"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@COD_IDEN">
                    <xsl:attribute name="COD_IDEN">
                      <xsl:value-of select="@COD_IDEN"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@FEC_DESDE">
                    <xsl:attribute name="FEC_DESDE">
                      <xsl:value-of select="@FEC_DESDE"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@FEC_HASTA">
                    <xsl:attribute name="FEC_HASTA">
                      <xsl:value-of select="@FEC_HASTA"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:value-of select="."/>
                </ns0:DOCUMENTOIDENTIFICACION>
              </xsl:for-each>
            </ns0:DOCUMENTOSIDENTIFICACION>
            <ns0:ROLES>
              <xsl:for-each select="/inp1:OBTENERPERSONAMR/inp1:PERSONA/ns0:ROLES/ns0:ROLPERSONA">
                <ns0:ROLPERSONA>
                  <xsl:if test="@ID_TROLPERS">
                    <xsl:attribute name="ID_TROLPERS">
                      <xsl:value-of select="@ID_TROLPERS"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@DES_TROLPERS">
                    <xsl:attribute name="DES_TROLPERS">
                      <xsl:value-of select="@DES_TROLPERS"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@COD_TROLPERS">
                    <xsl:attribute name="COD_TROLPERS">
                      <xsl:value-of select="@COD_TROLPERS"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@DES_NOTAS">
                    <xsl:attribute name="DES_NOTAS">
                      <xsl:value-of select="@DES_NOTAS"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@FEC_DESDE">
                    <xsl:attribute name="FEC_DESDE">
                      <xsl:value-of select="@FEC_DESDE"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="@FEC_HASTA">
                    <xsl:attribute name="FEC_HASTA">
                      <xsl:value-of select="@FEC_HASTA"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:value-of select="."/>
                </ns0:ROLPERSONA>
              </xsl:for-each>
            </ns0:ROLES>
          </ns6:ADMINISTRADO>
        </ns6:SOLICITUD>
      </ns5:EXPEDIENTE>
    </ns5:ABRIREXPEDIENTEMR>
  </xsl:template>
</xsl:stylesheet>
